package edu.sjsu.itack.util;

public final class Messages {
 
	private static final String EXC100 = "Authentication failed.Invalid Email and/or Password.";
	private static final String EXC101 = "Email and/or Password cannot be empty.";
	private static final String EXC102 = "User registration failed. Invalid user details.";
	private static final String EXC103 = "Could not add new user. Email address is already registered.";
	private static final String EXC104 = "Server side exception. Please contact system admin.";

	public static final String getMessage(String code){
		switch (code) {
			case "EXC100": return EXC100;
			case "EXC101": return EXC101;
			case "EXC102": return EXC102;
			case "EXC103": return EXC103;
			case "EXC104": return EXC104;
			default: return "Invalid message code";
		}
	}
}
